﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserPwd.aspx.cs" Inherits="Maticsoft.Web.wap.UserPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <!--#include file="include/head.htm"-->
    <script type="text/javascript">
        function ModifyPwd() {
            $.ajax({
                type: "get",
                url: "UserPwd.aspx",
                data: "sync=true&ope=mod&o=" + $("#txtOldPwd").val() + "&n=" + $("#txtNewPwd").val() + "&d=" + new Date().toString(),
                success: function (msg) {
                    if (msg == "1") {
                        alert("密码修改成功");
                        $("#txtOldPwd").val("");
                        $("#txtNewPwd").val("");
                        $("#txtNewPwd2").val("")
                    }
                    else if (msg == "-1") {
                        alert("原始密码错误");
                    }
                    else {
                        alert("未知错误");
                    }
                },
                error: function (msg) {

                }
            })
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <header class="mui-bar">
			<a class="mui-action-back gotoup mui-pull-left"></a>
			<h1 class="mui-title">修改密码</h1>
			<a class="mui-pull-right tc-black" href="javascript:;" onclick="ModifyPwd();">保存</a>
		</header>
    <div class="mui-content pad-btm-60">
        <div class="mui-input-group" style="margin: 10px 0 20px 0;">
            <div class="mui-input-row">
                <label class="tc-black" style="width: 35%;">
                    原始密码</label>
                <input type="password" class="mui-input-clear" placeholder="原始密码" id="txtOldPwd">
            </div>
            <div class="mui-input-row">
                <label class="tc-black" style="width: 35%;">
                    新密码</label>
                <input type="password" class="mui-input-clear" placeholder="新密码" id="txtNewPwd">
            </div>
            <div class="mui-input-row">
                <label class="tc-black" style="width: 35%;">
                    确认密码</label>
                <input type="password" class="mui-input-clear" placeholder="确认密码" id="txtNewPwd2">
            </div>
        </div>
    </div>
    </form>
</body>
</html>
